package com.simon.customer.entity;

import java.io.Serializable;

public class Dishes implements Serializable{
	private String foodName;
	private String foodPrice;
	private String foodPic;
	private String foodTypeName;
	private String merchantName;
	public Dishes(String foodName, String foodPrice, String foodPic,
			String foodTypeName, String merchantName) {
		this.foodName = foodName;
		this.foodPrice = foodPrice;
		this.foodPic = foodPic;
		this.foodTypeName = foodTypeName;
		this.merchantName = merchantName;
	}
	public String getFoodName() {
		return foodName;
	}
	public void setFoodName(String foodName) {
		this.foodName = foodName;
	}
	public String getFoodPrice() {
		return foodPrice;
	}
	public void setFoodPrice(String foodPrice) {
		this.foodPrice = foodPrice;
	}
	public String getFoodPic() {
		return foodPic;
	}
	public void setFoodPic(String foodPic) {
		this.foodPic = foodPic;
	}
	public String getFoodTypeName() {
		return foodTypeName;
	}
	public void setFoodTypeName(String foodTypeName) {
		this.foodTypeName = foodTypeName;
	}
	public String getMerchantName() {
		return merchantName;
	}
	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((foodName == null) ? 0 : foodName.hashCode());
		result = prime * result
				+ ((foodPic == null) ? 0 : foodPic.hashCode());
		result = prime * result
				+ ((foodPrice == null) ? 0 : foodPrice.hashCode());
		result = prime * result
				+ ((foodTypeName == null) ? 0 : foodTypeName.hashCode());
		result = prime * result
				+ ((merchantName == null) ? 0 : merchantName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Dishes other = (Dishes) obj;
		if (foodName == null) {
			if (other.foodName != null)
				return false;
		} else if (!foodName.equals(other.foodName))
			return false;
		if (foodPic == null) {
			if (other.foodPic != null)
				return false;
		} else if (!foodPic.equals(other.foodPic))
			return false;
		if (foodPrice == null) {
			if (other.foodPrice != null)
				return false;
		} else if (!foodPrice.equals(other.foodPrice))
			return false;
		if (foodTypeName == null) {
			if (other.foodTypeName != null)
				return false;
		} else if (!foodTypeName.equals(other.foodTypeName))
			return false;
		if (merchantName == null) {
			if (other.merchantName != null)
				return false;
		} else if (!merchantName.equals(other.merchantName))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Dishes [foodName=" + foodName + ", foodPrice=" + foodPrice
				+ ", foodPic=" + foodPic + ", foodTypeName="
				+ foodTypeName + ", merchantName=" + merchantName + "]";
	}
	
	
	
	
	
}
